package com.hengpeng.itfinbase.persist;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;

import com.hengpeng.common.web.annotation.HtmlInput;
import com.hengpeng.common.web.annotation.HtmlInputType;
import com.hengpeng.itfinbase.en.RewardAddRateStatus;
import com.hengpeng.itfinbase.idAssign.AbstractAssign18IdEntity;

/**
 * 会员等级加息信息表
 * 
 * @author weiyuan
 *
 */
@Entity
public class RewardAddRate extends AbstractAssign18IdEntity {

    /**
     * 
     */
    private static final long serialVersionUID = -7015339562932086958L;

    @Column(length = 20)
    private Long investInfoId; // 投标订单id
    
    @Column(length = 20)
    private Long borrowInfoId; // 借款标的id
    
    @Column(length = 20)
    private Long userId; // 投资人id
    
    @Column(length = 20)
    private Long activeid; // 活动id
    
    @Column(length = 20)
    private BigDecimal addRate; // 加息利率
    
    private BigDecimal money; // 加息金额，单位：分
    
    private Date payTime; // 支付时间

    @Column(length = 20)
    @HtmlInput(label = "加息状态", type = HtmlInputType.TEXT, nullable = true, index = 3, labelProperty = "text")
    @Enumerated(javax.persistence.EnumType.STRING)
    private RewardAddRateStatus status;

    private Date updateTime; // 更新时间
    private Date createTime; // 创建时间

    public Long getInvestInfoId() {
        return investInfoId;
    }

    public void setInvestInfoId(Long investInfoId) {
        this.investInfoId = investInfoId;
    }

    public Long getBorrowInfoId() {
        return borrowInfoId;
    }

    public void setBorrowInfoId(Long borrowInfoId) {
        this.borrowInfoId = borrowInfoId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getActiveid() {
        return activeid;
    }

    public void setActiveid(Long activeid) {
        this.activeid = activeid;
    }

    public BigDecimal getAddRate() {
        return addRate;
    }

    public void setAddRate(BigDecimal addRate) {
        this.addRate = addRate;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public RewardAddRateStatus getStatus() {
        return status;
    }

    public void setStatus(RewardAddRateStatus status) {
        this.status = status;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}
